package a.f;

import a.c.d;
import a.c.e;
import a.c.m;
import a.d.k;
import a.d.w;
import a.d.y;

public class dd
{
  public static int a;
  
  public cd a(o paramo, d paramd, boolean paramBoolean1, boolean paramBoolean2)
  {
    boolean bool = o.eg;
    e locale = paramBoolean1 ? paramd.e() : paramd.f();
    double d1 = paramo.p(locale) - 2.0D;
    double d2 = paramo.q(locale) - 2.0D;
    double d3 = d1 + paramo.s(locale) + 4.0D;
    double d4 = d2 + paramo.t(locale) + 4.0D;
    y localy = paramo.n(paramd);
    if (paramBoolean1)
    {
      if (bool) {
        break label118;
      }
      localn = localy.a(0);
      if (o.dg == 0) {
        break label120;
      }
    }
    label118:
    a.d.n localn = localy.a(localy.j() - 2);
    label120:
    w localw1 = localn.d();
    w localw2 = localn.e();
    if (!bool) {
      if (k.b(d1, d2, d1, d4, localw1.a, localw1.b, localw2.a, localw2.b)) {
        return cd.a((byte)8, paramBoolean2);
      }
    }
    if (!bool) {
      if (k.b(d1, d2, d3, d2, localw1.a, localw1.b, localw2.a, localw2.b)) {
        return cd.a((byte)1, paramBoolean2);
      }
    }
    if (!bool) {
      if (k.b(d3, d4, d1, d4, localw1.a, localw1.b, localw2.a, localw2.b)) {
        return cd.a((byte)2, paramBoolean2);
      }
    }
    if (!bool) {
      if (k.b(d3, d4, d3, d2, localw1.a, localw1.b, localw2.a, localw2.b)) {
        return cd.a((byte)4, paramBoolean2);
      }
    }
    return cd.a((byte)0, paramBoolean2);
  }
  
  public void a(o paramo, a.c.n paramn1, a.c.n paramn2)
  {
    a(paramo, paramo.w(), paramn1, false, paramn2, false);
  }
  
  public void a(o paramo, m paramm, a.c.n paramn1, boolean paramBoolean1, a.c.n paramn2, boolean paramBoolean2)
  {
    int i = o.dg;
    do
    {
      if (!paramm.e()) {
        break;
      }
      d locald = paramm.a();
      paramn1.a(locald, a(paramo, locald, true, paramBoolean1));
      paramn2.a(locald, a(paramo, locald, false, paramBoolean2));
      paramm.f();
    } while (i == 0);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.dd
 * JD-Core Version:    0.7.0.1
 */